<div class="row">
	<div class="col-xs-12">
		<div class="row well well-sm">
			<div class="col-xs-12 col-sm-9 col-sm-offset-1"><?php
			echo form_open(null,array(
				'class'=>'form-horizontal','role'=>'form'
			));
				?>
				<div class="form-group">
					<label class="col-sm-3 col-md-3 col-lg-2 control-label">Họ:</label>
					<div class="col-sm-9 col-md-9 col-lg-10"><?php
						echo form_input(array(
							'name'=>'ho','value'=>set_value('ho'),
							'class'=>'form-control','required'=>'required',
							'placeholder'=>'Họ '
						));
						echo form_error('ho');
					?></div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 col-md-3 col-lg-2 control-label">Tên:</label>
					<div class="col-sm-9 col-md-9 col-lg-10"><?php
						echo form_input(array(
							'name'=>'ten','value'=>set_value('ten'),
							'class'=>'form-control','required'=>'required',
							'placeholder'=>'Tên '
						));
						echo form_error('ten');
					?></div>
				</div>

				<div class="form-group">
					<label class="col-sm-3 col-md-3 col-lg-2 control-label">Giới Tính:</label>
					<div class="col-sm-9 col-md-9 col-lg-10"><?php
						echo '<label class="label label-default">'.form_checkbox(array(
							'type'=>'radio','name'=>'gioi-tinh','style'=>'vertical-align:-3px',
							'value'=>'1','checked'=>set_checkbox('gioi-tinh','1')
						)).' Nam</label> &nbsp;&nbsp';
						echo '<label class="label label-default">'.form_checkbox(array(
							'type'=>'radio','name'=>'gioi-tinh','style'=>'vertical-align:-3px',
							'value'=>'0','checked'=>set_checkbox('gioi-tinh','0',true)
						)).' Nữ</label>';
						echo form_error('gioi-tinh');
					?></div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 col-md-3 col-lg-2 control-label">Địa Chỉ:</label>
					<div class="col-sm-9 col-md-9 col-lg-10"><?php
						echo form_input(array(
							'name'=>'dia-chi','value'=>set_value('dia-chi'),
							'class'=>'form-control','required'=>'required',
							'placeholder'=>'Địa Chỉ '
						));
						echo form_error('dia-chi');
					?></div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 col-md-3 col-lg-2 control-label">Email:</label>
					<div class="col-sm-9 col-md-9 col-lg-10"><?php
						echo form_input(array(
							'name'=>'email','value'=>set_value('email'),
							'class'=>'form-control','required'=>'required',
							'placeholder'=>'Email '
						));
						echo form_error('email');
					?></div>
				</div>
				
				<div class="form-group">
					<label class="col-sm-3 col-md-3 col-lg-2 control-label">Người Dùng:</label>
					<div class="col-sm-9 col-md-9 col-lg-10"><?php
						$val = array();
						foreach($user as $v)
							$val[$v->getId()] = $v->getUsername();

						echo form_dropdown('id-user', $val, set_value('id-user'), 'class="form-control"');
						echo form_error('id-user');
					?></div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-5 col-md-offset-4 col-lg-offset-3 col-sm-7 col-md-8 col-lg-9"><?php
						echo form_submit(array(
							'name'=>'submit','value'=>'Thêm tin tức',
							'class'=>'btn btn-info'
						)).' '.form_reset(array(
							'name'=>'reset','value'=>'Nhập lại',
							'class'=>'btn btn-warning'
						));
					?></div>
				</div><?php
			echo form_close();
			?></div>
		</div>
	</div>
</div>
<script>
$('.bbcode').sceditor({
	toolbarExclude :'emoticon,cut,copy,paste,print',
	//toolbar:'bold,commandasd,source',
	emoticonsEnabled:false,
	plugins:"bbcode",
	style:"<?php echo base_url('/assets/css/default.min.css'); ?>"
});
</script>